/**
 * The database package of the application.
 */
package fr.umlv.m2.android.quizz.database;

/**
 * This class defines the answer object.
 * 
 * @author Gambouele Bertrand.
 * @author Viravout Alexandre.
 */
public class Answer {
	/**
	 * The answer id.
	 */
	private long id;
	/**
	 * The answer text.
	 */
	private String answerText;
	/**
	 * The question id which match with this answer.
	 */
	private long questionId;
	/**
	 * The answer level id.
	 */
	private long levelId;
	/**
	 * The answer themeId;
	 */
	private long themeId;
	
	/**
	 * Create the answer object.
	 */
	public Answer() {}
	
	/**
	 * Create the answer object.
	 * @param answer the answer text.
	 * @param questionId the question id which match with this answer.
	 */
	public Answer(String answerText, long questionId, long levelId, long themeId) {
		this.answerText = answerText;
		this.questionId = questionId;
		this.levelId = levelId;
		this.themeId = themeId;
	}
	
	/**
	 * Sets the answer id.
	 * 
	 * @param id the answer id.
	 */
	public void setId(long id) {
		this.id = id;
	}
	
	/**
	 * Gets the answer id.
	 * 
	 * @return the answer id.
	 */
	public long getId() {
		return this.id;
	}
	
	/**
	 * Sets the answer text.
	 * 
	 * @param answer the answer text.
	 */
	public void setAnswerText(String answerText) {
		this.answerText = answerText;
	}
	
	/**
	 * Gets the answer text.
	 * 
	 * @return the answer text.
	 */
	public String getAnswerText() {
		return this.answerText;
	}
	
	/**
	 * Sets the question id which match with this answer.
	 * 
	 * @param id the question id. 
	 */
	public void setQuestionId(long id) {
		this.questionId = id;
	}
	
	/**
	 * Gets the question id which match with this answer.
	 * 
	 * @return the question id.
	 */
	public long getQuestionId() {
		return this.questionId;
	}
	
	/**
	 * Sets the answer level id.
	 * 
	 * @param id the level id. 
	 */
	public void setLevelId(long id) {
		this.levelId = id;
	}
	
	/**
	 * Gets the answer level id.
	 * 
	 * @return the level id.
	 */
	public long getLevelId() {
		return this.levelId;
	}
	
	/**
	 * Sets the question id which match with this answer.
	 * 
	 * @param id the theme id. 
	 */
	public void setThemeId(long id) {
		this.themeId = id;
	}
	
	/**
	 * Gets the answer theme id.
	 * 
	 * @return the theme id.
	 */
	public long getThemeId() {
		return this.themeId;
	}
}
